package com.todo.pro.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 微信用户
 * </p>
 *
 * @author ZhongXia
 * @since 2018-08-30
 */
@TableName("td_wx_user")
public class WxUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	private Long id;
    /**
     * 绑定用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * OPEN_ID
     */
	@TableField("open_id")
	private String openId;
    /**
     * UnionID
     */
	@TableField("union_id")
	private String unionId;
    /**
     * 微信SessionKey
     */
	@TableField("session_key")
	private String sessionKey;
    /**
     * 微信昵称
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 头像
     */
	@TableField("avatar_url")
	private String avatarUrl;
    /**
     * 性别
     */
	private Integer gender;
    /**
     * 国家
     */
	private String country;
    /**
     * 所在省份
     */
	private String province;
    /**
     * 所在城市
     */
	private String city;
    /**
     * 微信客户端语言
     */
	private String language;
    /**
     * 关联时间
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "WxUser{" +
			", id=" + id +
			", userId=" + userId +
			", openId=" + openId +
			", unionId=" + unionId +
			", sessionKey=" + sessionKey +
			", nickName=" + nickName +
			", avatarUrl=" + avatarUrl +
			", gender=" + gender +
			", country=" + country +
			", province=" + province +
			", city=" + city +
			", language=" + language +
			", createTime=" + createTime +
			"}";
	}
}
